import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import "amfe-flexible/index.js"
import Vant from 'vant'
import 'vant/lib/index.css'
import axios from 'axios';
import '@/assets/css/reset.css'
Vue.prototype.axios = axios;
Vue.config.productionTip = false
import {
  Loading
} from 'vant';
Vue.use(Loading);
axios.interceptors.request.use(function (config) {
  store.state.isLoading = true;
  return config
})
axios.interceptors.response.use(function (response) {
  store.state.isLoading = false;
  return response
})
import {
  Swipe,
  SwipeItem
} from 'vant';
Vue.use(Swipe).use(SwipeItem);
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
import mvItem from './components/movieItem.vue/movieItem.vue'
Vue.component('mvItem', mvItem)
import { IndexBar, IndexAnchor} from 'vant';
import { Cell, CellGroup } from 'vant';

Vue.use(Cell).use(CellGroup);
Vue.use(IndexBar).use(IndexAnchor);
Vue.use(Vant)